package com.cliang.entity;

public class Blog {
    private Integer bId;            //博客id
    private Integer buId;           //博客所属用户id
    private Integer btId;           //博客所属类别id
    private String bTitle;          //标题
    private String bAuthor;         //作者
    private String bContent;        //内容
    private Integer bBrowse;        //浏览量
    private Integer bLike;          //点赞数
    private Integer bComments;      //评论数
    private String bTime;           //博客创建时间

    public Blog() {
    }

    public Blog(Integer bId, Integer buId, Integer btId, String bTitle, String bAuthor, String bContent, Integer bBrowse, Integer bLike, Integer bComments, String bTime) {
        this.bId = bId;
        this.buId = buId;
        this.btId = btId;
        this.bTitle = bTitle;
        this.bAuthor = bAuthor;
        this.bContent = bContent;
        this.bBrowse = bBrowse;
        this.bLike = bLike;
        this.bComments = bComments;
        this.bTime = bTime;
    }

    public Integer getbId() {
        return bId;
    }

    public void setbId(Integer bId) {
        this.bId = bId;
    }

    public Integer getBuId() {
        return buId;
    }

    public void setBuId(Integer buId) {
        this.buId = buId;
    }

    public Integer getBtId() {
        return btId;
    }

    public void setBtId(Integer btId) {
        this.btId = btId;
    }

    public String getbTitle() {
        return bTitle;
    }

    public void setbTitle(String bTitle) {
        this.bTitle = bTitle;
    }

    public String getbAuthor() {
        return bAuthor;
    }

    public void setbAuthor(String bAuthor) {
        this.bAuthor = bAuthor;
    }

    public String getbContent() {
        return bContent;
    }

    public void setbContent(String bContent) {
        this.bContent = bContent;
    }

    public Integer getbBrowse() {
        return bBrowse;
    }

    public void setbBrowse(Integer bBrowse) {
        this.bBrowse = bBrowse;
    }

    public Integer getbLike() {
        return bLike;
    }

    public void setbLike(Integer bLike) {
        this.bLike = bLike;
    }

    public Integer getbComments() {
        return bComments;
    }

    public void setbComments(Integer bComments) {
        this.bComments = bComments;
    }

    public String getbTime() {
        return bTime;
    }

    public void setbTime(String bTime) {
        this.bTime = bTime;
    }

    @Override
    public String toString() {
        return "{" +
                "bId:" + bId +
                ", buId:" + buId +
                ", btId:" + btId +
                ", bTitle:'" + bTitle + '\'' +
                ", bAuthor:'" + bAuthor + '\'' +
                ", bContent:'" + bContent + '\'' +
                ", bBrowse:" + bBrowse +
                ", bLike:" + bLike +
                ", bComments:" + bComments +
                ", bTime:'" + bTime + '\'' +
                '}';
    }
}
